package com.hzgj.bcl.soa.interceptor;

import com.hzgj.bcl.soa.rpc.message.Message;

import java.io.IOException;

public interface Serialization {

    String getName();

    byte getId();

    byte[] write(Message message) throws Exception;

    Object read(Message message) throws Exception;

}
